package com.dc.spike.mapper.entity;

import java.util.Date;

/**
 * @author: KEYD
 * @Date: 2020/1/19 21:06
 * @Desc: 秒杀订单类
 */
public class OrderEntity {

    /**
     * 库存id
     */
    private Long seckillId;
    /**
     * 用户手机号码
     */
    private String userPhone;
    /**
     * 订单状态
     */
    private Long state;
    /**
     * 创建时间
     */
    private Date createTime;

    @Override
    public String toString() {
        return "OrderEntity{" +
                "seckillId=" + seckillId +
                ", userPhone='" + userPhone + '\'' +
                ", state=" + state +
                ", createTime=" + createTime +
                '}';
    }

    public Long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Long seckillId) {
        this.seckillId = seckillId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}